package com.qcby.byc.demo0422.scheduling;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @className: TestJob
 * @description:
 * @author: lxt
 * @create: 2021-05-30 21:52
 **/
@Slf4j
@Component
public class TestJob {




    // 每3000s执行一次
    @Scheduled(fixedDelay=3000)
    public void test(){
        log.info("开始执行。。。。。。。。。。。。。。");
    }
}




